home *** CD-ROM | disk | FTP | other *** search
- #############################################################################
- File: Comment.FPL
- Author: Jesper Skov
- Email: jskov@iesd.auc.dk
- Short: Easy source code commenting
- Version: 1.2
- Date: 5.11.94
- Local settings: comment_column,wall_right, (c_mode, asm_mode)
- Global settings:
- Keysequence: "'esc' ;" and "'esc' :"
- Type: function
- Prereq: (Center.FPL)
- Copyright: Jesper Skov
- Use/distribute according to the terms of GNU GPL.
- (See the file 'COPYING.GNU' for more info!)
- #############################################################################
-
- FUNCTION
- These two functions (LineComment and EOLComment) will make it a bit
- easier to retain (or rather write) a well commented source code.
-
- The EOLComment function is a copy-cat of the Emacs "indent-for-comment"
- function. The 'c_mode' and 'asm_mode' flags are used to determine which
- comment style should be used. The (local) variable 'comment_column'
- (+1 actually) specify at which column the comment should be set.
- Activate by pressing <'esc' ;>. Example:
- /* Testing 1-2-3 */
-
- The LineComment function gives you an easy way of (visually) splitting the
- source code into function/routine "areas". When invoking the function with
- <'esc' :> you will be asked for a describing text, which will be right-
- justified in the comment block. Example:
-
- /*****************************************************************************
- ************************************ This comment is created by LineComment **
- *****************************************************************************/
-
- The width of the comment block may be controlled with the wall_right
- variable. The startstop character (here '/') and the body character
- (here '*') depend on the c_mode and asm_mode flags.
- An empty string cancels the operation (as does the Cancel gadget :)
-
-
- HISTORY (REV)
- 09.10.94 (0) Initial revision
- 23.10.94 (1) ReadInfo("linelength") -> ReadInfo("line_length")
- 05.11.94 (2) Now creates the 'wall_right' info variable.
-
- BUGS
- Nah, not today anyway :)
-
- SEE ALSO
- C.J.Cherryh's "The Paladin" (ISBN: 0-671-65417-9)
-
-